import request from "@/utils/request";

export function getDroneById(id) {
  return request({
    url: `/api/drones/${id}`,
    method: "get",
  });
}

export function getDroneQRCode(id) {
  return request({
    url: `/api/drones/${id}/qrcode`,
    method: "get",
    responseType: "blob",
  });
}
